package com.migu.rbac.message;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * Created by zhang on 2018/9/1 12:00.
 * 营销平台短信接口服务
 */
@Service
@FeignClient(url="${remote.sendMsg.messageUrlPrefix}", name = "promactity",fallback = PromacityServiceFallback.class)
public interface PromactityService {

    @RequestMapping(value="${remote.sendMsg.messageUrlSuffix}",method = RequestMethod.GET)
    String sendMessage(@RequestParam Map<String, String> map) throws Exception;


    @RequestMapping(value="${remote.sendMsg.checkMessageSuffix}",method = RequestMethod.GET)
    String checkMessage(@RequestParam Map<String, String> map) throws Exception;
}
